//
//  ImportThreePicCell.m
//  NeteaseNewsLY
//
//  Created by dllo on 16/1/20.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ImportThreePicCell.h"

@implementation ImportThreePicCell
- (void)dealloc
{
    [_imgsrc release];
    [_title release];
    [_imgsrcOne release];
    [_imgsrcTwo release];
    [_replyCount release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imgsrc = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgsrc];
        [_imgsrc release];
        
        self.title = [[UILabel alloc] init];
        [self.contentView addSubview:_title];
        [_title release];
        
        self.imgsrcOne = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgsrcOne];
        [_imgsrcOne release];
        
        self.imgsrcTwo = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgsrcTwo];
        [_imgsrcTwo release];
        
        self.replyCount = [[UILabel alloc] init];
        [self.contentView addSubview:_replyCount];
        [_replyCount release];
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _title.frame = CGRectMake(WIDTH * 10, HEIGHT * 10, WIDTH * 265, HEIGHT * 25);
    
    _imgsrc.frame = CGRectMake(WIDTH * 10, HEIGHT * 45, WIDTH * 112, HEIGHT * 80);
    
    _imgsrcOne.frame = CGRectMake(WIDTH * 130, HEIGHT * 45, WIDTH * 112, HEIGHT * 80);
    
    _imgsrcTwo.frame = CGRectMake(WIDTH * 250, HEIGHT * 45, WIDTH * 112, HEIGHT * 80);
    
    _replyCount.frame = CGRectMake(WIDTH * 300, HEIGHT * 10, WIDTH * 75, HEIGHT * 25);
    _replyCount.font = [UIFont systemFontOfSize:12];
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
